package com.augurit.wf.client.agency.web.form;

import java.util.Date;
import java.util.List;

import com.augurit.common.base.form.BaseForm;
import com.augurit.wf.common.entity.WfAgencyDetail;

public class WfAgencyForm extends BaseForm{
	// 属性
	private Long id;
	private String principal;
	private String principalName;
	private String agent;
	private String agentName;
	private String agentMode;
	private Date startDate;
	private Date endDate;
	private String reason;
	
	
	private String wfTemplateNames;
	private String wfTemplateIds;
//	private String wfDefNamesStr;
	
	private String loginUserCode;
	private String loginUserName;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public String getPrincipal() {
		return this.principal;
	}

	public void setPrincipal(String principal) {
		this.principal = principal;
	}
	public String getPrincipalName() {
		return this.principalName;
	}

	public void setPrincipalName(String principalName) {
		this.principalName = principalName;
	}
	public String getAgent() {
		return this.agent;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}
	public String getAgentName() {
		return this.agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}
	public String getAgentMode() {
		return this.agentMode;
	}

	public void setAgentMode(String agentMode) {
		this.agentMode = agentMode;
	}
	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getWfTemplateNames() {
		return wfTemplateNames;
	}

	public void setWfTemplateNames(String wfTemplateNames) {
		this.wfTemplateNames = wfTemplateNames;
	}

	public String getLoginUserCode() {
		return loginUserCode;
	}

	public void setLoginUserCode(String loginUserCode) {
		this.loginUserCode = loginUserCode;
	}

	public String getLoginUserName() {
		return loginUserName;
	}

	public void setLoginUserName(String loginUserName) {
		this.loginUserName = loginUserName;
	}
	
//	public String getWfDefIdsStr() {
//		return wfDefIdsStr;
//	}
//
//	public void setWfDefIdsStr(String wfDefIdsStr) {
//		this.wfDefIdsStr = wfDefIdsStr;
//	}

//	public String getWfDefNamesStr() {
//		return wfDefNamesStr;
//	}
//
//	public void setWfDefNamesStr(String wfDefNamesStr) {
//		this.wfDefNamesStr = wfDefNamesStr;
//	}
	

//	public String formatAgentProcessList(final List<WfAgencyDetail> list){
//		String result = "";
//		if(list != null && list.size() > 0){
//			result += list.get(0).getWfDefName();
//			for(int i = 1; i < list.size(); i++){
//				result = result + "、\r\n" + list.get(i).getWfDefName(); 
//			}
//		}
//		return result;
//	}
	
	public String getWfTemplateIds() {
		return wfTemplateIds;
	}

	public void setWfTemplateIds(String wfTemplateIds) {
		this.wfTemplateIds = wfTemplateIds;
	}

	public String formatWfTemplateIds(final List<WfAgencyDetail> list){
		String result = "";
		if(list != null && list.size() > 0){
			result += list.get(0).getWfTemplateId();
			for(int i = 1; i < list.size(); i++){
				result = result + "," + list.get(i).getWfTemplateId(); 
			}
		}
		return result;
	}
	
//	public String formatWfDefNamesStr(final List<WfAgencyDetail> list){
//		String result = "";
//		if(list != null && list.size() > 0){
//			result += list.get(0).getWfDefName();
//			for(int i = 1; i < list.size(); i++){
//				result = result + "," + list.get(i).getWfDefName(); 
//			}
//		}
//		return result;
//	}
	
}
